package zhuyingying20240318;

/**
 * @Package:PACKAGE_NAME
 * @Author:zhuyingying
 * @Created:2024/3/1821:04
 */
public class Truck extends Car {
    public Truck(){
    }
    @Override
    public void drive(){
        super.drive();
        System.out.println("卡车正在行驶");
    }
    public void trumpet(int b) {
        System.out.println(b + "汽车按喇叭");
    }

}
